package org.zy;

import lombok.Data;

import java.util.Map;

@Data
public class AndExpression<E extends Calculator<Boolean>,F extends Calculator<Boolean>> implements Calculator<Boolean> {

    private E v1;
    private F v2;

    @Override
    public Boolean calculate(Map<String,Object> valueMap) {
        return v1.calculate(valueMap) && v2.calculate(valueMap);
    }

}
